<!-- Display WinPoint Transactions (click on "WinPoints") -->
<% content_for :top do %>
	<br />
	<span style="font-weight:bold;font-size:16px;padding-left:12px;">WinPoint <%=image_tag"winpoint.png"%> History</span><br/><br/>
	<center>
		<table class="lister" style="margin-left:10px"> 
			<thead style="text-align:center">
				<td width="10%">WinPoints</td>
				<td width="70%">Transaction</td>
				<td width="20%">Time & Date</td>
			</thead>
			<tbody>
				<%@phs.each do |ph|%>
					<tr>
					   <td class="boldfont"><%=ph.earning ? "<font color=#00ff00>+#{ph.point}</font>" : "<font color=#ff0000>-#{ph.point}</font>"%></td>
					   <td style="text-align:left"><%=ph.action%></td>
					   <td><%=ph.created_at.strftime("%H:%M  %m-%d-%Y")%></td>
					</tr>
				<%end%>
			</tbody>
		</table>
		<%=will_paginate(@phs)%>
	</center>
<%end%>